using System;
using System.Collections.Generic;

namespace B.S.NewMedical.Api.Read.DTOS.Consult
{
    /// <summary>
    /// 健康咨询详情DTO
    /// </summary>
    public class ConsultDetailDto
    {
        /// <summary>
        /// 问题详情
        /// </summary>
        public ConsultQuestionDto Question { get; set; }

        /// <summary>
        /// 回答列表
        /// </summary>
        public List<ConsultAnswerDto> Answers { get; set; }
    }

    /// <summary>
    /// 健康咨询回答DTO
    /// </summary>
    public class ConsultAnswerDto
    {
        /// <summary>
        /// 回答ID
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 问题ID
        /// </summary>
        public int QuestionId { get; set; }

        /// <summary>
        /// 回答内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 医生ID
        /// </summary>
        public int DoctorId { get; set; }

        /// <summary>
        /// 医生姓名
        /// </summary>
        public string DoctorName { get; set; }

        /// <summary>
        /// 医生职称
        /// </summary>
        public string DoctorTitle { get; set; }

        /// <summary>
        /// 科室
        /// </summary>
        public string Department { get; set; }

        /// <summary>
        /// 医院
        /// </summary>
        public string Hospital { get; set; }

        /// <summary>
        /// 医生头像
        /// </summary>
        public string Avatar { get; set; }

        /// <summary>
        /// 点赞数
        /// </summary>
        public int LikeCnt { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }
    }

    /// <summary>
    /// 分页列表通用类
    /// </summary>
    /// <typeparam name="T">数据类型</typeparam>
    public class PagedList<T>
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页条数
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 总条数
        /// </summary>
        public int TotalCount { get; set; }

        /// <summary>
        /// 总页数
        /// </summary>
        public int TotalPages { get; set; }

        /// <summary>
        /// 数据列表
        /// </summary>
        public List<T> Items { get; set; }
    }
} 